/*处置督办弹窗*/
function open_business_back(id) {
    var str =
        '    <div class="layui-container">\n' +
        '        <div class="layui-card-body">\n' +
        '            <div class="layui-row">\n' +
        '                <div class="layui-col-md12">\n' +
        '                    <textarea id="businessBack"></textarea>\n' +
        '                </div>\n' +
        '                <div class="layui-col-md12" style="padding-top: 15px">\n' +
        '                    <button class="layui-btn layui-btn-sm" city-event="business_back_sure" event-id="' + id + '">确认</button>\n' +
        '                    <button class="layui-btn layui-btn-danger layui-btn-sm">取消</button>\n' +
        '                </div>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '    </div>';
    return str;
}

/*督办备注*/
function do_ban_comment() {
    var str =
        '    <div class="layui-container" style="width: 100%;padding-top: 15px;padding-bottom: 15px">\n' +
        '        <div class="layui-card-body">\n' +
        '            <div class="layui-row">\n' +
        '                <div class="layui-col-md12">\n' +
        '                    <textarea id="doBanComment" ' +
        '                    style="width: 400px;height: 200px;resize: none;padding: 10px" maxlength="250" placeholder="请输入备注，不能为空"></textarea>\n' +
        '                </div>\n' +
        '                <div class="layui-col-md12" style="padding-top: 15px">\n' +
        '                    <button class="layui-btn layui-btn-sm layui-layer-btn0" city-event="do_ban_comment_sure">确认</button>\n' +
        '                    <button class="layui-btn layui-btn-danger layui-btn-sm layui-layer-btn1">取消</button>\n' +
        '                </div>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '    </div>';
    return str;
}


/*申请会办*/
function together() {
    var str =
        '    <div class="layui-container" style="width: 100%;padding-top: 15px;padding-bottom: 15px">\n' +
        '        <div class="layui-card-body">\n' +
        '            <div class="layui-row">\n' +
        '                <div class="layui-col-md12">\n' +
        '                    <textarea id="togetherContent" ' +
        '                    style="width: 400px;height: 200px;resize: none;padding: 10px" maxlength="250" placeholder="请输入会办理由，不可为空"></textarea>\n' +
        '                </div>\n' +
        '                <div class="layui-col-md12" style="padding-top: 15px">\n' +
        '                    <button class="layui-btn layui-btn-sm layui-layer-btn0" city-event="together_sure">确认</button>\n' +
        '                    <button class="layui-btn layui-btn-danger layui-btn-sm layui-layer-btn1">取消</button>\n' +
        '                </div>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '    </div>';
    return str;
}

/*申请授权*/
function business_auth_alert(){
    var str =
        '    <div class="layui-container" style="width: 100%;padding-top: 15px;padding-bottom: 15px">\n' +
        '        <div class="layui-card-body">\n' +
        '            <div class="layui-row">\n' +
        '                <div class="layui-col-md12">\n' +
        '                    <textarea id="doBanComment" ' +
        '                    style="width: 400px;height: 200px;resize: none;padding: 10px" maxlength="250" placeholder="请输入授权理由以及时间"></textarea>\n' +
        '                </div>\n' +
        '                <div class="layui-col-md12" style="padding-top: 15px">\n' +
        '                    <button class="layui-btn layui-btn-sm layui-layer-btn0" city-event="business_auth_sure">确认</button>\n' +
        '                    <button class="layui-btn layui-btn-danger layui-btn-sm layui-layer-btn1">取消</button>\n' +
        '                </div>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '    </div>';
    return str;
}

/*督办记录*/
function do_ban_record(data) {
    var str =
        '<div class="layui-container" style="width: 100%;padding-top: 15px;padding-bottom: 15px">\n' +
        '<ul class="layui-timeline">\n';
    for (var i = 0, len = data.length; i < len; i++) {
        str +=
            '  <li class="layui-timeline-item">\n' +
            '    <i class="layui-icon layui-timeline-axis"></i>\n' +
            '    <div class="layui-timeline-content layui-text">\n' +
            '      <h3 class="layui-timeline-title">' + data[i].createTimeName + '</h3>\n' +
            '      <p>' + data[i].doBan.comment + '</p>\n' +
            '    </div>\n' +
            '  </li>\n';
    }
    str +=
        '  <li class="layui-timeline-item">\n' +
        '    <i class="layui-icon layui-anim layui-anim-rotate layui-anim-loop layui-timeline-axis"></i>' +
        '    <div class="layui-timeline-content layui-text">\n' +
        '      <div class="layui-timeline-title">没有更多记录了</div>\n' +
        '    </div>\n' +
        '  </li>\n' +
        '</ul>  ' +
        '    </div>';

    return str;
}

/*案卷回撤*/
function report_back_edit() {
    var str =
        '    <div class="layui-container" style="width: 100%;padding-top: 15px;padding-bottom: 15px">\n' +
        '        <div class="layui-card-body">\n' +
        '            <div class="layui-row">\n' +
        '                <div class="layui-col-md12">\n' +
        '                    <textarea id="reportBackEdit" ' +
        '                    style="width: 400px;height: 200px;resize: none;padding: 10px" maxlength="250" placeholder="请输入回撤备注，可以为空"></textarea>\n' +
        '                </div>\n' +
        '                <div class="layui-col-md12" style="padding-top: 15px">\n' +
        '                    <button class="layui-btn layui-btn-sm layui-layer-btn0" city-event="report_back_edit_sure">确认</button>\n' +
        '                    <button class="layui-btn layui-btn-danger layui-btn-sm layui-layer-btn1">取消</button>\n' +
        '                </div>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '    </div>';
    return str;
}

/*新增上访人员*/
function add_copnote_person_alert(data) {
    var person = data.person;
    var p_str = '';
    for (var i = 0, len = person.length; i < len; i++)
        p_str += '<option value="' + person[i]['id'] + '">' + person[i]['name'] + '</option>';

    var str = '<form class="layui-container layui-form" style="width: 680px; padding-top: 15px" id="copnotePersonForm">\n' +
        '    <div class="layui-row">\n' +
        '        <div class="layui-form-item layui-col-md12">\n' +
        '            <label class="layui-form-label">姓名：</label>\n' +
        '            <div class="layui-input-block">\n' +
        '                <input name="name" id="sonDiv" type="text" placeholder="真实姓名" required  lay-verify="required" autocomplete="off" class="layui-input"/>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '        <div class="layui-form-item layui-col-md12">\n' +
        '            <label class="layui-form-label">成员数：</label>\n' +
        '            <div class="layui-input-block">\n' +
        '                <input name="familyPnum" type="text" placeholder="家庭成员数量" required  lay-verify="required|number" autocomplete="off" class="layui-input"/>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '        <div class="layui-form-item layui-col-md12">\n' +
        '            <label class="layui-form-label">住房条件：</label>\n' +
        '            <div class="layui-input-block">\n' +
        '                <input name="houseStatus" type="text" placeholder="住房条件" autocomplete="off" class="layui-input"/>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '        <div class="layui-form-item layui-col-md12">\n' +
        '            <label class="layui-form-label">资金收入：</label>\n' +
        '            <div class="layui-input-block">\n' +
        '                <input name="economicsIncome" type="text" placeholder="资金收入,单位:元" required  lay-verify="required|number" autocomplete="off" class="layui-input"/>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '        <div class="layui-form-item layui-col-md12">\n' +
        '            <label class="layui-form-label">人员类别：</label>\n' +
        '            <div class="layui-input-block">\n' +
        '                <select name="personType" id="personType" >' + p_str + '</select>\n' +
        '\n' +
        '            </div>\n' +
        '        </div>\n' +
        '        <div class="layui-form-item layui-col-md12">\n' +
        '            <label class="layui-form-label">访问内容：</label>\n' +
        '            <div class="layui-input-block">\n' +
        '                <textarea name="content" class="layui-textarea" style="resize: none"></textarea>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '        <div class="layui-form-item layui-col-md12">\n' +
        '            <label class="layui-form-label">心得体会：</label>\n' +
        '            <div class="layui-input-block">\n' +
        '                <textarea name="experience" class="layui-textarea" style="resize: none"></textarea>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '        <div class="layui-form-item layui-col-md12">\n' +
        '            <label class="layui-form-label">访问时间：</label>\n' +
        '            <div class="layui-input-block">\n' +
        '                <input name="time" type="text" placeholder="访问时间" required autocomplete="off" class="layui-input" id="copnotePersonTime"/>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '        <div class="layui-form-item layui-col-md12">\n' +
        '            <div class="layui-input-block">\n' +
        '                <button class="layui-btn" lay-submit lay-filter="copnotePersonForm">立即提交</button>\n' +
        '                <button type="reset" class="layui-btn layui-btn-primary">重置</button>\n' +
        '            </div>\n' +
        '        </div>\n' +
        '    </div>\n' +
        '</form>';
    return str;
}

/*帮助弹窗*/
function index_help_alert() {
    var str =
        '<div class="layui-container" style="width: 100%;padding-top: 15px;padding-bottom: 15px">\n' +
        '<ul class="layui-timeline">\n';
    str +=
        '  <li class="layui-timeline-item">\n' +
        '    <i class="layui-icon layui-timeline-axis"></i>\n' +
        '    <div class="layui-timeline-content layui-text">\n' +
        '      <h3 class="layui-timeline-title">联系电话</h3>\n' +
        '      <p>15775960309</p>\n' +
        '    </div>\n' +
        '  </li>\n';
    str +=
        '  <li class="layui-timeline-item">\n' +
        '    <i class="layui-icon layui-timeline-axis"></i>\n' +
        '    <div class="layui-timeline-content layui-text">\n' +
        '      <h3 class="layui-timeline-title">联系邮箱</h3>\n' +
        '      <p>leichuqiao@126.com</p>\n' +
        '    </div>\n' +
        '  </li>\n';
    str +=
        '  <li class="layui-timeline-item">\n' +
        '    <i class="layui-icon layui-timeline-axis"></i>\n' +
        '    <div class="layui-timeline-content layui-text">\n' +
        '      <h3 class="layui-timeline-title">联系地址</h3>\n' +
        '      <p>四川宜宾兴文县古宋镇光明坝兴文二中校区综合楼三楼</p>\n' +
        '    </div>\n' +
        '  </li>\n';
    str +=
        '  <li class="layui-timeline-item">\n' +
        '    <i class="layui-icon layui-timeline-axis"></i>\n' +
        '    <div class="layui-timeline-content layui-text">\n' +
        '      <h3 class="layui-timeline-title">企业</h3>\n' +
        '      <p>四川省数聚汇智科技有限责任公司</p>\n' +
        '    </div>\n' +
        '  </li>\n';
    str +=
        '  <li class="layui-timeline-item">\n' +
        '    <i class="layui-icon layui-anim layui-anim-rotate layui-anim-loop layui-timeline-axis"></i>' +
        '    <div class="layui-timeline-content layui-text">\n' +
        '      <div class="layui-timeline-title">没有更多方法了</div>\n' +
        '    </div>\n' +
        '  </li>\n' +
        '</ul>  ' +
        '    </div>';
    return str;
}